<?php

namespace app\controller;
use app\BaseController;
use app\model\User as UserModel;
use app\Request;

class User extends BaseController{

    public function index(Request $request){
        try {
            $param = $request->param();
            $model = new UserModel();
            $list =  $model->with('profile')->paginate(10);
          return  show(1,$list);
        }catch (\Exception $e){
          return  show(0,$e->getMessage());
        }
    }
}